import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import 'lib-flexible/flexible'
import router from './router'
import 'vant/es/toast/style'; //单独引入toast样式

import dayjs from 'dayjs' // ES 2015




const app = createApp(App)
//全局过滤器
app.config.globalProperties.$filters={
  transTime(date){
    return dayjs(Number(date)).format('HH:mm')
  },
  transDay(value){
    return dayjs(value).format('MM-DD')
  },
  transYDm(value){
    return dayjs(value).format('YYY-MM-DD')
  }
}
app.use(router).mount('#app')
